{include file=member.header.html}
<div id="page-buyer-groupbuy">
	<div class="page-body buyer-groupbuy">
		<!--{foreach from=$groupbuy_list item=group name=_group_f}-->
		<a href="mobile/{url app=groupbuy&id=$group.group_id}">
			<dl class="seller-info inclusive-box f66">
			<dd><label>{$lang.group_name} :</label><span> {$group.group_name|escape}</span></dd>
            <dd><label>{$lang.state} :</label><span> {$group.state|modifier:group_state}</span></dd>
            <dd><label>{$lang.endtime} :</label><span> {$group.end_time|date:Y-m-d}</span></dd>
            <dd><label>{$lang.min_quantity} :</label><span> {$group.min_quantity}</span></dd>
			<dd><label>{$lang.quantity} :</label><span> {$group.quantity}</span></dd>
			<dd>
				<label>{$lang.log} :</label>
				<span> 
					{foreach from=$group.spec_quantity item=spec}
						 {if $spec.qty gt 0}{if $spec.spec}{$spec.spec}{else}{$lang.default_spec}{/if}: {$spec.qty}{$lang.item}{/if}<br />
					{/foreach}
				</span>
			</dd> 
		</dl>
		</a>
		<div class="btn-box">
			{foreach from=$group.ican item=name}
                        {if $name eq 'view'}
                        <a target="_blank" href="mobile/{url app=groupbuy&id=$group.group_id}">{$lang.view}</a>
                        {elseif $name eq 'buy'}
                        <a target="_blank" href="mobile/{url app=order&goods=groupbuy&group_id=$group.group_id}">{$lang.buy}</a>
                        {elseif $name eq 'view_order'}
                        <a target="_blank" href="mobile/{url app=buyer_order&act=view&order_id=$group.order_id}">{$lang.view_order}</a>
                        {elseif $name eq 'exit_group'}
                        <a href="javascript:drop_confirm('{$lang.exit_confirm}','mobile/{url app=buyer_groupbuy&act=exit_group&id=$group.group_id}')">{$lang.exit_group}</a>
                        {/if}
                        {/foreach}
		</div>
		<!--{foreachelse}-->
        <div class="no-record">{$lang.no_records}</div>
        <!--{/foreach}-->
	</div>
</div>
{include file=footer.html}